﻿#include <iostream>
#include<thread>
#include<string>
void printHelloWorld(std::string str) {
    std::cout << str << std::endl;
}
int main()
{
    std::thread _thread(printHelloWorld, "传递的参数");
    _thread.join();//让主线程等待其他所有线程执行结束 才会接着往下执行
    return 0;
}
 